package com.baizhi.entity;

import java.io.Serializable;

public class Record implements Serializable {
    private Integer recordId;
    private Integer userId;
    private Integer auctionId;
    private String auctionTime;
    private double auctionPrice;
    private User rUser;
    private Auction rAuction;

    public Record() {
    }

    public Record(Integer recordId, Integer userId, Integer auctionId, String auctionTime, double auctionPrice) {
        this.recordId = recordId;
        this.userId = userId;
        this.auctionId = auctionId;
        this.auctionTime = auctionTime;
        this.auctionPrice = auctionPrice;
    }

    public Record(Integer recordId, Integer userId, Integer auctionId, String auctionTime, double auctionPrice, User rUser) {
        this.recordId = recordId;
        this.userId = userId;
        this.auctionId = auctionId;
        this.auctionTime = auctionTime;
        this.auctionPrice = auctionPrice;
        this.rUser = rUser;
    }

    public Record(Integer recordId, Integer userId, Integer auctionId, String auctionTime, double auctionPrice, User rUser, Auction rAuction) {
        this.recordId = recordId;
        this.userId = userId;
        this.auctionId = auctionId;
        this.auctionTime = auctionTime;
        this.auctionPrice = auctionPrice;
        this.rUser = rUser;
        this.rAuction = rAuction;
    }

    public Integer getRecordId() {
        return recordId;
    }

    public void setRecordId(Integer recordId) {
        this.recordId = recordId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getAuctionId() {
        return auctionId;
    }

    public void setAuctionId(Integer auctionId) {
        this.auctionId = auctionId;
    }

    public String getAuctionTime() {
        return auctionTime;
    }

    public void setAuctionTime(String auctionTime) {
        this.auctionTime = auctionTime;
    }

    public double getAuctionPrice() {
        return auctionPrice;
    }

    public void setAuctionPrice(double auctionPrice) {
        this.auctionPrice = auctionPrice;
    }

    public User getrUser() {
        return rUser;
    }

    public void setrUser(User rUser) {
        this.rUser = rUser;
    }

    public Auction getrAuction() {
        return rAuction;
    }

    public void setrAuction(Auction rAuction) {
        this.rAuction = rAuction;
    }

    @Override
    public String toString() {
        return "Record{" +
                "recordId=" + recordId +
                ", userId=" + userId +
                ", auctionId=" + auctionId +
                ", auctionTime='" + auctionTime + '\'' +
                ", auctionPrice=" + auctionPrice +
                ", rUser=" + rUser +
                ", rAuction=" + rAuction +
                '}';
    }
}
